<?php
    require 'isok.php';
    require 'dbcon.php';
    $sql="select * from categories";
    $page=isset($_GET['page'])?$_GET['page']:1;   
    $pagesize=4;       
    $result=$db->query($sql);
    $bbsdata=$result->fetch_all(MYSQLI_BOTH);
    $num=$result->num_rows;
    $result->free_result();
    $db->close();
    require 'nav-menus_html.php';